package com.example.demo1.service.Impl;

import com.example.demo1.mapper.FlightMapper;
import com.example.demo1.mapper.MessageMapper;
import com.example.demo1.model.Flight;
import com.example.demo1.model.Message;
import com.example.demo1.model.User;
import com.example.demo1.service.FlightService;
import com.example.demo1.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//杨德旭10.19
@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;


    @Override
    public List<Message> getUserMessage(User user) {
        return messageMapper.getUserMessage(user);
    }

    @Override
    public void dealMessage(Message message) {
        messageMapper.dealMessage(message);
    }
}
